#include"client.hpp"

void Usage()
{
  cout << "\n\t./client ServerIp SeverPort" << endl;
}

int main(int argc,char* argv[])
{
  if(argc != 3)
  {
    Usage();
    exit(USAGE_ERR);
  }

  string Ip = argv[1];
  uint16_t Port = atoi(argv[2]);
  //string Ip = "43.138.163.136";
  //uint16_t Port = 8081;

  UdpClient* client = new UdpClient(Ip,Port);
  
  client->Start();

  delete client;
  return 0;
}



